{include file='header.tpl'}
{include file='left.tpl'}
<div id="left-area">
    <div class="breadcrumb">
            <span class="raquo"></span><a href="/">Главная</a>
            <span class="raquo"> &raquo; </span><a href="{geturl controller='help' action='index'}">Помощь</a>  
            <span class="raquo"> &raquo; </span><a href="{geturl route='helpcat' name=$category->alias}">{$category->name}</a> 
        </div>
        <div class="tab-content" style="display: block; border-top: 1px solid #DDDDDD; padding-bottom: 20px;">
            <h3>Получите быстрый ответ</h3>
            <div id="search-form" style="width: 420px; background: url(/images/search-bg_big.png) no-repeat; margin-top: 16px;">
                <form method="get" id="searchform"{geturl controller='help' action='search'}>
                    <!-- <input type="text" value="product/search" name="route" id="searchinput" style="display:none;"> -->
                    <input type="text" value="например: как покупать" style="width: 370px;" name="q" id="searchinput" onclick="if(this.value == 'например: как покупать')this.value = '';" onblur="if(this.value == '') this.value='например: как покупать'" onkeydown="this.style.color = '#000000';">
                    <input type="image" src="/css/images/search_btn.png" id="searchsubmit">
                </form>
            </div>
        </div>
        <h1 class="category-title">{$category->name}</h1>
        <h3>{$category->descr}</h3>
        <div class="tab-content" style="display: block; border-top: 1px solid #DDDDDD; padding-bottom: 20px; margin-top: 20px;">
            <div><strong>Рекомендованные статьи:</strong></div>
            {foreach from=$recommend item='item'}
                <div><a href="{geturl route='helppage' alias=$item->alias}">{$item->name}</a></div>
            {/foreach}
        </div>
        {foreach from=$cats item='cat'}
            <div style="width: 45%; display: inline-block;">
                <strong>{$cat->name}</strong>
                {foreach from=$cat->pages item='page'}
                    <p>
                        <a href="{geturl route='helppage' alias=$page->alias}">{$page->name}</a>
                    </p>
                {/foreach}
            </div>
        {/foreach}
</div>
{include file='footer.tpl'}